﻿ 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HouodeFun.TrainCenter.IDAL;
using System.Data.Objects;

namespace HouodeFun.TrainCenter.DAL
{
    public partial class DbSession : IDbSession  //UnitWork
    {   
	
		private IAddressInfoRepository _AddressInfoRepository;
        public IAddressInfoRepository AddressInfoRepository 
        {
            get
            {
                if (_AddressInfoRepository == null)
                {
                    _AddressInfoRepository = new AddressInfoRepository();
                }
                return _AddressInfoRepository; 
            }
            set
            {
                _AddressInfoRepository = value;
            }
        }
   
	
		private ICityInfoRepository _CityInfoRepository;
        public ICityInfoRepository CityInfoRepository 
        {
            get
            {
                if (_CityInfoRepository == null)
                {
                    _CityInfoRepository = new CityInfoRepository();
                }
                return _CityInfoRepository; 
            }
            set
            {
                _CityInfoRepository = value;
            }
        }
   
	
		private IProvinceInfoRepository _ProvinceInfoRepository;
        public IProvinceInfoRepository ProvinceInfoRepository 
        {
            get
            {
                if (_ProvinceInfoRepository == null)
                {
                    _ProvinceInfoRepository = new ProvinceInfoRepository();
                }
                return _ProvinceInfoRepository; 
            }
            set
            {
                _ProvinceInfoRepository = value;
            }
        }
   
	
		private IUserInfoRepository _UserInfoRepository;
        public IUserInfoRepository UserInfoRepository 
        {
            get
            {
                if (_UserInfoRepository == null)
                {
                    _UserInfoRepository = new UserInfoRepository();
                }
                return _UserInfoRepository; 
            }
            set
            {
                _UserInfoRepository = value;
            }
        }
   
	}
}